/**
 * Created by Administrator on 2017/2/6.
 */

module.exports = function(app) {
    return new ReportRemote(app);
};

var ReportRemote = function(app) {
    this.app = app;
};

ReportRemote.prototype.addReport = function(roomId, uidArray, callback) {
    callback();

    async.each(uidArray, function(uid, cb) {
        gPlayerManger.getPlayer(uid, function(player) {
            if (player) {
                player.addReport(roomId);
                player.checkEvent("play", 1);
                player.save();
            }
            cb();
        });
    }, function(err) {

    });
}